using System.IO;
using System.Net;
using System.Net.Sockets;
using OracleInternal.Secure.Network;

namespace OracleInternal.Network
{
	internal class SessionContext
	{
		internal static readonly int NSVSNDHS = 311;

		internal static readonly int NSVSNRDS = 312;

		internal static readonly int NSVSNRDR = 312;

		internal static readonly int NSVSNDHO = 312;

		internal static readonly int NSVSNDHE = 314;

		internal static readonly int NSVSNIP6 = 314;

		internal static readonly int NSVSNSRN = 313;

		internal static readonly int NSVSNPPP = 313;

		internal static readonly int NSVSNLSD = 315;

		internal static readonly int NSVSNCMP = 315;

		internal static readonly int NSVSNCMN = 316;

		internal static readonly int NSVSNHAN = 316;

		internal static readonly int NSVSNAPN = 317;

		internal static readonly int NSVSNOOB = 318;

		internal int m_portNo;

		internal string m_instanceName;

		internal string m_hostName;

		internal IPAddress m_ipAddress;

		internal string m_protocol;

		internal string m_serviceName;

		internal byte[] m_SID;

		internal Stream m_socketStream;

		internal Socket m_socket;

		internal Socket m_testSocket;

		internal string m_connectData;

		internal ConnectionOption m_conops;

		internal int m_myversion;

		internal int m_loversion;

		internal int m_options;

		internal int m_negotiatedOptions;

		internal ushort m_ourone;

		internal ushort m_hisone;

		internal string m_reconAddr;

		internal Ano m_ano;

		internal bool m_bAnoEnabled;

		internal bool cryptoNeeded;

		internal EncryptionAlgorithm encryptionAlg;

		internal int cryptoBlockSize;

		internal int m_ACFL0;

		internal int m_ACFL1;

		internal int m_sessionDataUnit;

		internal int m_transportDataUnit;

		internal ReaderStream m_readerStream;

		internal WriterStream m_writerStream;

		internal ITransportAdapter m_transportAdapter;

		internal bool m_NSHandshakeComplete;

		internal bool m_usingAsyncReceives;

		internal bool isNTConnected;

		internal bool m_onBreakReset;

		internal bool m_gotReset;

		internal bool m_gotInBandNotif;

		internal bool onRedirect;

		internal int m_InBandNotifCmd;

		internal int m_InBandNotifEMFI;

		internal int m_InBandNotifErr1;

		internal int m_InBandNotifErr2;

		internal OracleCommunication.InbandNotification m_InbandNotification;

		internal object m_inbandErrContext;

		internal SessionContext(int sduSize, int tduSize)
		{
			m_sessionDataUnit = sduSize;
			m_transportDataUnit = tduSize;
			m_myversion = 317;
			m_loversion = 300;
			m_options = TNSPacketOffsets.NSGDONTCARE | TNSPacketOffsets.NSGNOATTNPR;
			m_ourone = 1;
		}
	}
}
